package com.aya.aop.asp;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class CustomBeforeAdvice implements MethodBeforeAdvice {
    Logger logger = LoggerFactory.getLogger(ChildBean.class);


    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        logger.info("CustomBeforeAdvice:before");
    }
}
